import request from '@/utils/request'

// 查询用户提现记录列表
export function listUserWithdrawal(query) {
  return request({
    url: '/workbench/userWithdrawal/list',
    method: 'get',
    params: query
  })
}

// 查询用户提现记录详细
export function getUserWithdrawal(id) {
  return request({
    url: '/workbench/userWithdrawal/' + id,
    method: 'get'
  })
}

// 新增用户提现记录
export function addUserWithdrawal(data) {
  return request({
    url: '/workbench/userWithdrawal',
    method: 'post',
    data: data
  })
}

// 修改用户提现记录
export function updateUserWithdrawal(data) {
  return request({
    url: '/workbench/userWithdrawal',
    method: 'put',
    data: data
  })
}

// 删除用户提现记录
export function delUserWithdrawal(id) {
  return request({
    url: '/workbench/userWithdrawal/' + id,
    method: 'delete'
  })
}

// 导出用户提现记录
export function exportUserWithdrawal(query) {
  return request({
    url: '/workbench/userWithdrawal/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/workbench/userWithdrawal/importTemplate',
    method: 'get'
  });
}


// 审核入驻申请
export function auditApplyWithdrawal(data) {
  return request({
    url: '/workbench/userWithdrawal/audit',
    method: 'post',
    data: data
  });
}

// 到账
export function daozhangWithdrawal(data) {
  return request({
    url: '/workbench/userWithdrawal/daozhang',
    method: 'post',
    data: data
  })
}
